<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
	</body>
</html>
<script type="text/javascript">
	function type(target){
		var template = {
			'[object Array]': "array 对象数组",
			'[object Object]': "Object 对象",
			'[object Number]': "Number-object 数字对象",
			// '[object Boolean]': "Boolean-object 布尔值对象",
			// '[object String]': "String-object 字符串对象",
		}
		if (target === null) {
			return null
		} 
		if (typeof(target) == 'object') {
			var str = Object.prototype.toString.call(target)
			return template[str]
		} else{
			return typeof(target)
		}
	}
		
	console.log( type(new Number(123)) )
	console.log( type([1]) )
	console.log( type() )
</script>